package com.app.oasystem.controller;

import com.app.oasystem.service.impl.LoginService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;

/**
 * 用户登录
 * 
 * @author xxx
 * @date xxx
 */
@RestController
@RequestMapping(path = "/login")
public class LoginController {
	@Resource
	LoginService loginService;
     
	/**
	 * 用户登录
	 * 
	 * @param input
	 * @param request
	 * @return
	 */
	@PostMapping(path = "/loginSystem")
	public Object loginSystem(@RequestBody HashMap<String, Object> input, HttpServletRequest request,HttpServletResponse response) {
		return loginService.loginSystem(input, request,response);
	}
}
